<?php
require '../$header.php';

$someevariable = $DB->escape($_POST['UserID']);

$return = array();
$userID = 1;

$DB->query("
	SELECT * 
	FROM spot
	WHERE UserID = '{$userID}'
");

if($DB->num() > 0)
{
	while($fetch = $DB->fetch())
	{
		$return[] = $fetch;
	}
}

echo json_encode($return);

require '../$footer.php';
?>